package com.mark.spring.annotation.register.imports.selector;

import org.springframework.context.annotation.ImportSelector;
import org.springframework.core.type.AnnotationMetadata;

/**
 * @Description: 自定义ImportSelector
 * @Author: Mark
 * @CreateDate: 2019/9/22 11:21
 * @Version: 3.00.001
 * @Copyright : 豆浆油条个人非正式工作室
 */
public class MyImportSelector implements ImportSelector {

    /**
     *
     * @param importingClassMetadata 当前标注在@Import注解的类所有注解信息
     * @return 导入到IOC容器中组件的全类名
     */
    @Override
    public String[] selectImports(AnnotationMetadata importingClassMetadata) {
        return new String[]{"com.mark.spring.annotation.register.imports.selector.Selector"};
    }
}
